import globalvar
import threading

# 更新回测资金曲线
class UIUpdatebacktestingThread(threading.Thread):
    def __init__(self, newdata):
        super(UIUpdatebacktestingThread, self).__init__()
        self.newdata = newdata

    def run(self):
        globalvar.ui.updatebacktestingUi(self.newdata)